-- GENERATED SPELL FOR [Scarlet Abbot] --


function spell0_4303(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(8269,pUnit)
pUnit:RegisterEvent('Sorts_4303', 562, 1)
end

function spell1_4303(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(6064,pUnit)
pUnit:RegisterEvent('Sorts_4303', 3000, 1)
end

function spell2_4303(pUnit, Event) --@Inner Fire,Self--
pUnit:FullCastSpellOnTarget(1006,pUnit)
pUnit:RegisterEvent('Sorts_4303', 560, 1)
end

function spell3_4303(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(8362,pUnit)
pUnit:RegisterEvent('Sorts_4303', 22000, 1)
end

function Sorts_4303(pUnit, Event)
local choix_sorts_4303 = math.random(0, 3)
if choix_sorts_4303 == 0 then
pUnit:RegisterEvent('spell0_4303', 1, 1)
end
if choix_sorts_4303 == 1 then
pUnit:RegisterEvent('spell1_4303', 1, 1)
end
if choix_sorts_4303 == 2 then
pUnit:RegisterEvent('spell2_4303', 1, 1)
end
if choix_sorts_4303 == 3 then
pUnit:RegisterEvent('spell3_4303', 1, 1)
end
end

function mob4303_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4303', math.random(1500, 3000), 1)
end

function mob4303_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4303_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4303_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4303, 1, 'mob4303_Action')
RegisterUnitEvent(4303, 2, 'mob4303_Leave')
RegisterUnitEvent(4303, 3, 'mob4303_Kill')
RegisterUnitEvent(4303, 4, 'mob4303_Die')
